package org.example.test;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class test3 {
    public static void main(String[] args) throws IOException {
        OutputStream os=new FileOutputStream("E:\\测试文件\\hello.txt");
        os.write('H');
        os.write('E');
        os.write('L');
        os.write('L');
        os.write('O');
        //刷新缓冲区
        os.flush();
    }
}
